import QtQuick 2.0
import QtGraphicalEffects 1.0

Image {
    id: man
    source: "qrc:/image/image/girl1.png"
    smooth: true
    cache: false

    x: virtualX - width/2
    y: virtualY - height

    // 输入点是底部中心点
    property real virtualX: 0
    property real virtualY: 0
    property string txt: ""

    property real xAngle: 50
    property real yAngle: 0
    property real zAngle: 35
    property color gColor: globalColor
    property color gbgColor: globalbgColor

    sourceSize.width: 52
    sourceSize.height: 122

    MouseArea{
        anchors.fill: parent
        drag.target: man
    }

    Image {
        id: bg
        source: "qrc:/image/image/iconbg.png"
//        smooth: true
        visible: false
    }

    ColorOverlay{
        anchors.fill: bg
        source: bg
        color: gbgColor
    }


    RotateMulti{
        width: 52
        height: 52
        xAngle: man.xAngle
        yAngle: man.yAngle
        zAngle: man.zAngle
        x: 2
        y: -12
        gColor: man.gColor
    }
}
